<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:a4j="http://richfaces.org/a4j">
      
  <ui:composition template="/WEB-INF/templates/login-template.xhtml">
  
    <ui:define name="title">
      CoPractice - a social question-practice system with collaborative and intelligent feedback
    </ui:define>
    
    <ui:define name="signin-form">
      <a4j:form id="loginForm">
        <h:panelGrid id="loginPanel" columns="2" border="0" styleClass="login-form">
          <f:facet name="header">
            <h:outputText value="Sign in to CoPractice"/>
          </f:facet>
        
          <h:outputLabel for="username" value="Username: "/>
          <h:inputText id="username" value="#{signin.username}"/>
            
          <h:outputLabel for="password" value="Password: "/>
          <h:inputSecret id="password" value="#{signin.password}"/>
          
          <h:outputText value="&nbsp;"/>
          <a4j:commandButton value="Sign In" action="#{signin.signInAction}"/>
          
          <f:facet name="footer">
            Create an account
          </f:facet>
        </h:panelGrid>
      </a4j:form>
    </ui:define>
    
  </ui:composition>
  
</html>